package cn.innosmart.aq.customize;

import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;

import com.zhy.autolayout.utils.AutoUtils;

import cn.innosmart.aq.R;

public class AlarmDialog extends Dialog {
    private Context mContext;
    private TextView tv_content;

    public AlarmDialog(Context context) {
        super(context);

        requestWindowFeature(Window.FEATURE_NO_TITLE);

        init(context);
    }

    private void init(Context context) {
        this.mContext = context;
        View contentView = View.inflate(getContext(), R.layout.alarm_dialog, null);
        AutoUtils.autoSize(contentView);
        setContentView(contentView);
        tv_content = (TextView) findViewById(R.id.tv_content);
    }

    public void setContent(CharSequence content) {
        tv_content.setText(content);
    }
}